"use client";

import { useState } from "react";

export default function DashboardTemplate({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
    const [count, setCount] = useState(0);
  return (
  <div className="border-2 border-dashed border-black p4 W-2/3 mx-auto">
   
     <h2>Dashboard Template {count}</h2>
     <button className="bg-black text-white px-4 py-2 rounded-md" type="button" onClick={() => setCount(count + 1)} >加一</button>
        {children}
   </div>
  );
}